from django.db import models
from django.utils.translation import ugettext_lazy as _
class SitePreference(models.Model):
	'''
		Site global preference is simply a key-value pair, where key stands for specific item 
		and value stands for value, of course. 
	'''
	key = models.CharField(
		help_text=_('Field name: eg. allow_reg or site_name'), max_length = 10)
	value = models.CharField(max_length = 20)
	def __unicode__(self):
		'''
		toString function.
		'''
		return u'%s %s' % (self.key, self.value)